package com.iss.card.view.mycard;

import java.io.Serializable;

import android.util.Log;

import com.iss.card.R.string;
import com.iss.card.webservice.BaseModel;

public class CardBagModel extends BaseModel implements Serializable{

	private static final long serialVersionUID = 733566708012576675L;
	
	/**
	 * 
	 * cardID: card id
	 * cardName: card name
	 * cardType: card type
	 * cardAttribute: card attribute
	 * cardIssuer
	 * 
	 */
	
	private String cardId;
	public String cardName;
	public String cardType;
	private String cardAttr;
	private String cardIssuer;
	
	private static final String CARD_ID = "cardID";
	private static final String CARD_NAME = "cardName";
	private static final String CARD_TYPE = "cardType";
	private static final String CARD_ATTRIBUTE = "cardAttribute";
	private static final String CARD_ISSUER = "cardIssuer";
	
	@Override
	public void addValues(String tempString, String valueString,
			BaseModel baseMode) {
		// TODO Auto-generated method stub
		if(tempString == CARD_ID){
			setCardId(valueString);
		}else if(tempString == CARD_NAME){
			setCardName(valueString);
		}else if(tempString == CARD_TYPE){
			setCardType(valueString);
		}else if(tempString == CARD_ATTRIBUTE){
			setCardAttr(valueString);
		}else if(tempString == CARD_ISSUER){
			setCardIssuer(valueString);
		}
		
		baseMode = this;
	}
	
	public void setCardId(String id){
		this.cardId = id;
	}
	public String getCardId(){
		return cardId;
	}
	public void setCardType (String type){
		this.cardType = type;
	}
	public String getCardType(){
		return cardType;
	}
	public void setCardName(String name){
		this.cardName = name;
	}
	public String getCardName(){
		return cardName;
	}
	public void setCardAttr(String Attr){
		this.cardAttr = Attr;
	}
	public String getCardAttr(){
		return cardAttr;
	}
	
	public void setCardIssuer(String cardIssuer){
		this.cardIssuer = cardIssuer;
	}
	public String getCardIssuer(){
		return cardIssuer;
	}
}

